package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.Workflow;

import com.qidianit.mes.pro.vo.WorkflowProcessByProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.Array;
import java.util.ArrayList;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/18 - 13:39
 */
@Mapper
public interface WorkFlowMapper {

    ArrayList<WorkflowProcessByProduct> queryWorkflowProcessByProduct(@Param("id") Integer id,
                                                                      @Param("productionId") Integer productionId);

    ArrayList<Workflow> queryWorkFlowListByManyTags(@Param("page") Integer page,
                                                    @Param("size") Integer size,
                                                    @Param("workflowCode") String workflowCode,
                                                    @Param("workflowName") String workflowName,
                                                    @Param("status") Integer status);

    Workflow queryWorkFlowByCode(@Param("workflowCode") String workflowCode);

    int addWorkFlow(Workflow workflow);

    int updateWorkFlow(Workflow workflow);

    int deleteWorkFlow(@Param("id") Integer id);


}
